<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>TreeGrid ContextMenu - jQuery EasyUI Demo</title>
    <link rel="stylesheet" type="text/css" href="http://www.jeasyui.net/Public/js/easyui/themes/default/easyui.css">
    <link rel="stylesheet" type="text/css" href="http://www.jeasyui.net/Public/js/easyui/themes/icon.css">
    <link rel="stylesheet" type="text/css" href="http://www.jeasyui.net/Public/js/easyui/demo/demo.css">
    <script type="text/javascript" src="http://code.jquery.com/jquery-1.6.min.js"></script>
    <script type="text/javascript" src="http://www.jeasyui.net/Public/js/easyui/jquery.easyui.min.js"></script>
    <script type="text/javascript"
            src="http://www.java1234.com/jquery-easyui-1.3.3/locale/easyui-lang-zh_CN.js"></script>
</head>
<body>
<a href="javascript:void(0)" class="easyui-linkbutton" onclick="setValue()">SetValue</a>
<a href="javascript:void(0)" class="easyui-linkbutton" onclick="getValue()">GetValue</a>
<input id="tt" value="01">
<script type="text/javascript">
    $(function () {
        $('#tt').combotree({
            url: '/permission/tree',
            method: 'get',
            animate: true,
            checkbox: true,
            multiple: true,
            required: true
        });
    });
    function setValue() {
        $('#tt').combotree('setValues', ['23', '27']);
    }
    function getValue() {
        var val = $('#tt').combotree('getValues');
        alert(val);
    }
</script>
</body>
</html>